package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/7/6.
 * 优惠券判断依赖参数，传给礼券页面用来判断用的
 */
public class GiftDependRulesBean implements Parcelable {

    int quality;//购买份数
    String price;//价格
    String serId;//服务Id
    String orderId;//订单编号

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "GiftDependRulesBean{" +
                "quality=" + quality +
                ", price='" + price + '\'' +
                ", serId='" + serId + '\'' +
                ", orderId='" + orderId + '\'' +
                '}';
    }

    public int getQuality() {
        return quality;
    }

    public GiftDependRulesBean setQuality(int quality) {
        this.quality = quality;
        return  this;
    }

    public String getPrice() {
        return price;
    }

    public GiftDependRulesBean setPrice(String price) {
        this.price = price;
        return this;
    }

    public String getSerId() {
        return serId;
    }

    public GiftDependRulesBean setSerId(String serId) {
        this.serId = serId;
        return this;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.quality);
        dest.writeString(this.price);
        dest.writeString(this.serId);
        dest.writeString(orderId);
    }

    public GiftDependRulesBean() {
    }

    protected GiftDependRulesBean(Parcel in) {
        this.quality = in.readInt();
        this.price = in.readString();
        this.serId = in.readString();
        orderId=in.readString();
    }

    public static final Parcelable.Creator<GiftDependRulesBean> CREATOR = new Parcelable.Creator<GiftDependRulesBean>() {
        @Override
        public GiftDependRulesBean createFromParcel(Parcel source) {
            return new GiftDependRulesBean(source);
        }

        @Override
        public GiftDependRulesBean[] newArray(int size) {
            return new GiftDependRulesBean[size];
        }
    };
}
